﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="wFrmPopupImpresionCartaMedioPago.aspx.cs" Inherits="Crosland.Automotriz.Web.Vehiculos.Popup.wFrmPopupImpresionCartaMedioPago" %>
<%@ Register Assembly="DevExpress.Web.v13.1, Version=13.1.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a"
    Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dx" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<%@ Register assembly="Microsoft.ReportViewer.WebForms, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" namespace="Microsoft.Reporting.WebForms" tagprefix="rsweb" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
<script type="text/javascript">

    function CerrarVentana() {
        window.close();
    }

    function PrintReport() {
        var viewerReference = $find("rvPopupReporte");

        var stillonLoadState = viewerReference.get_isLoading();

        if (!stillonLoadState) {
            var reportArea = viewerReference.get_reportAreaContentType();
            if (reportArea == Microsoft.Reporting.WebFormsClient.ReportAreaContent.ReportPage) {
                $find("rvPopupReporte").invokePrintDialog();
            }
        }
    } 


</script>


    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>

    <asp:Label ID="Label1" runat="server"></asp:Label>
       
     <div class="main-header">
        <div class="main-titulo" > 
             <asp:Label ID="lblDefinicion" runat="server">Carta Medio de Pago</asp:Label>            
        </div>
      
        <div style="float:left; width:40%; text-align:right; margin:15px 15px 0 0">
            <table>
            <tr>
            <td><dx:ASPxButton ID="btnImprimir" runat="server" AutoPostBack="False" 
                Width="20px" CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                CssPostfix="Office2010Blue" HorizontalAlign="Center" 
                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                VerticalAlign="Middle" Text="Imprimir" onclick="btnImprimir_Click" 
                    ClientInstanceName="btnImprimir">
                <ClientSideEvents Click="function(s, e) {
	PrintReport();
}" />
                <Image Url="~/Images/printer.png">
                </Image>
            </dx:ASPxButton>
            </td>
            
            <td>
             <dx:ASPxButton ID="btnSalir" runat="server" Text="Salir" AutoPostBack="False" 
                CssFilePath="~/App_Themes/Office2010Blue/{0}/styles.css" 
                CssPostfix="Office2010Blue" 
                SpriteCssFilePath="~/App_Themes/Office2010Blue/{0}/sprite.css" 
                onclick="btnSalir_Click" HorizontalAlign="Center" VerticalAlign="Middle" 
                    Width="20px">
                 <Image Url="~/Images/logout.png">
                 </Image>
            </dx:ASPxButton>   
            </td>

            </tr>
            </table>
            
            
               
         </div>
            
    </div>

    <div class="content-report" style="height:auto"> 
     

     <div style="clear:both">
         <rsweb:ReportViewer ID="rvPopupReporte" runat="server" Width="100%"
         style="padding-top:0; margin-top:0; top:0; vertical-align:top"
         BackColor="#F2F2F2"  ShowFindControls="True" 
         ShowZoomControl="True" SplitterBackColor="White" 
         Height="650px" PromptAreaCollapsed="False" KeepSessionAlive="False">
         </rsweb:ReportViewer>
     </div>
    
     
</div>

    </form>
</body>
</html>
